extends PlayerState


# Declare member variables here. Examples:
# var a = 2
# var b = "text"


# Called when the node enters the scene tree for the first time.
func _ready():
	pass # Replace with function body.

func update():
	player.velocity = Vector2.ZERO
	if Input.is_action_pressed("ui_right") or Input.is_action_pressed("ui_left"):
		state_machine.transition_to("PlayerMove")
	
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
#	pass

func enter():
	player.get_node("AnimationPlayer").play("idle")
